home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / gnuish / gmake371 / msdos-g2.sed < prev    next >
Text File  |  1994-05-29  |  2KB  |  44 lines

  1. # -----------------------------------------------------------------------------
  2. # Script for `sed' to convert makefile.in into makefile for Gnu CC
  3. # -----------------------------------------------------------------------------
  4. 1i\
  5. # Generated automatically from makefile.in by configure.bat.
  6. /^VPATH *=/d
  7. /^srcdir *=/s/@[A-Za-z_]*@/./
  8. /^CFLAGS *=/s/@[A-Za-z_]*@/-O2 -g/
  9. /^LDFLAGS *=/s/@[A-Za-z_]*@//
  10. /^defines *=/s/-D.*$//
  11. /^defines *=/s/@[A-Za-z_]*@/-DNO_FLOAT/
  12. /^REMOTE *=/s/@[A-Za-z_]*@/stub/
  13. /^CC *=/s!@[A-Za-z_]*@!gcc!
  14. /^RANLIB *=/s!@[A-Za-z_]*@!ranlib!
  15. /^ALLOCA *=/s/@[A-Za-z_]*@//
  16. /^LOADLIBES *=/s/@[A-Za-z_]*@//
  17. /^extras *=/s/@[A-Za-z_]*@/dosstuff.o spawn.o/
  18. /^prefix *=/s/=.*$/= ./
  19. /^SHELL *=/s/^/# /
  20. /^@SET_MAKE@$/s/^/# /
  21. /^    -rm  *-f  */s/ make / make*.exe /
  22. /^make:/,/^$/s/-o make\.new/-o makegcc/
  23. /^make:/,/^$/s/mv -f make\.new make$/coff2exe makegcc/
  24. /^stamp-config:/,/^$/s/\$(SHELL)/rem/
  25. /^glob-clean.*:/,/^$/s/cd glob; *\$(MAKE)/$(MAKE) -C glob/
  26. /^glob.libglob\.a:/,/libglob\.a$/s/^            .*$//
  27. /^glob.libglob\.a:/,/^$/s!cd glob; .*$!cd glob\
  28.     $(MAKE) "CC=$(CC)" "CFLAGS='$(CFLAGS)'" libglob.a\
  29.     cd ..!
  30. /^\.c\.o:$/,/^$/s/ *\$(OUTPUT_OPTION)//
  31.  
  32. # Take care of double dot file names
  33. s/config\.h.\in/config.h-in/g
  34.  
  35. /^    -rm /s/\*\.o/*.o *.obj/
  36.  
  37. # Fix dependencies:
  38. /^dir\.o *:/s/ *$/ dosstuff.h/
  39. /^main\.o *:/s/ *$/ dosstuff.h/
  40. /^job\.o *:/s/ *$/ dosstuff.h/
  41. $a\
  42. dosstuff.o : dosstuff.c dosstuff.h pwd.h\
  43. spawn.o : spawn.c make.h variable.h dep.h file.h dosstuff.h
  44.